{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "27d1413d-97bc-4821-b234-70e0632449e3",
   "metadata": {},
   "outputs": [],
   "source": [
    "class Sutdent(object):\n",
    "    def __init__(self,name):\n",
    "        self.name = name\n",
    "        \n",
    "s = Sutdent('Bob')\n",
    "s.score = 90"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "52051e6c-9853-4b07-8284-420c133f74a8",
   "metadata": {},
   "outputs": [],
   "source": [
    "class Student(object):\n",
    "    name = 'Student'\n",
    "    # def __init__(self,name):\n",
    "    #     self.name = name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "a3331d89-223e-428b-a73d-efdedf7e6d71",
   "metadata": {},
   "outputs": [],
   "source": [
    "s = Student()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "f9268b9d-6994-4f35-9b48-f293b32a7d1c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Student\n"
     ]
    }
   ],
   "source": [
    "print(s.name)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "cdc9321f-7f74-4d4c-adb1-197e351451fe",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Student\n"
     ]
    }
   ],
   "source": [
    "print(Student.name)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "a8d62ba2-81a3-4894-afb5-9f9d9ec0bed7",
   "metadata": {},
   "outputs": [],
   "source": [
    "s.name = 'Michael'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "3f2ea35c-a96f-4e2c-b755-eb357d03e14b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Michael'"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "s.name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "e1371597-95a3-4619-9f26-a5dff5d2ee43",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Student\n"
     ]
    }
   ],
   "source": [
    "print(Student.name)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "46f22f0e-f5eb-4b03-91bc-80ea59ab1fa1",
   "metadata": {},
   "outputs": [],
   "source": [
    "del s.name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "1cde7286-d837-4ffd-bba8-8467d1bdbdbc",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Student\n"
     ]
    }
   ],
   "source": [
    "print(s.name)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c41d91c1-a35c-499d-aa58-f0501de896d2",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.21"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
